require.config({
    paths: {
        vue: "../encaptool/encvue",
        iview: "../utiltool/iview/iview",
        jquery: "../utiltool/jquery/jquery.min",
        router: "../encaptool/encarouter",
        axios: "../encaptool/encaxios",
    },
    shim: {
        iview: ["vue"]
    }
});
require(["vue", "iview", "jquery", "router", "axios",], function (
    Vue,
    iview,
    $,
    Router,
    axios,
) {
    let order_nav = {
        template : "<div>"
                +    "<nav>"
                +    "<i-button><a href='#/main/to_complete'>待完成订单</a></i-button>"
                +    "<i-button><a href='#/main/completed'>已完成订单</a></i-button>"
                +    "<i-button><a href='#/main/uncomplete'>未完成订单</a></i-button>"
                +    "</nav>"
                +  "</div>"
    }  
    Vue.use(iview);
    new Vue({
        el: "#change-nav",
        components:{
            order_nav
          },
    });
});